import http from "@/utils/http";

// 获取所有权限
export function getpermissionAPI(){
    return http({
        url:'/sys/permission'
    })
    
}
// 添加权限
export function addpermissionAPI(data){
    return http({
        url:'/sys/permission',
        method:' POST',
        data
    })
    
}
// 根据id获取权限详情
export function getdetailpermissionAPI(id){
    return http({
        url:`/sys/permission/${id}`
    })
    
}
// 编辑权限
export function updatapermissionAPI(data){
    return http({
        url:`/sys/permission/${data.id}`,
        method:' POST',
        data
    })
    
}